package User;

import Book.BookList;
import IOperation.Operation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-01-02
 * Time: 20:14
 */
public abstract class User {
    private String name;
    public Operation[] operations;

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public abstract int  menu();
    public  void doOperation(int choice , BookList bookList){
        Operation operation1=this.operations[choice];
        operation1.work(bookList);//根据传入的choice进行函数调用
    }


}
